package team.dmh.wx.exception;

import lombok.Getter;

/**
 * @Auther: Hz1kai
 * @Date: 2018/9/23 16:37
 * @Description:
 */
@Getter
public class MyException extends RuntimeException{

    private Integer status;

    public MyException(Integer code,String message) {
        super(message);
        this.status=code;
    }

    public MyException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
        this.status=exceptionEnum.getStatus();
    }
}
